import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_Department.DepList',
    method: 'post',
    data,
  })
}

export function getDetail(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_Department.DepDetail',
    method: 'post',
    data,
  })
}

export function doAdd(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_Department.AddDep',
    method: 'post',
    data,
  })
}

export function doEdit(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_Department.UpdateDep',
    method: 'post',
    data,
  })
}

export function doSwitch(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_Department.ModifyDepStatus',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/admin.php?s=Admin.Basic_Department.DeleteDep',
    method: 'post',
    data,
  })
}
